package com.youyun56.gps.android.events;

import android.app.Activity;
import android.content.Intent;

public class BaseMenuItemClick {

    public void goActivity(Activity activity, Class<? extends Activity> to) {
        Intent intent = new Intent();
        intent.setClass(activity, to);
        activity.startActivity(intent);
        activity.finish();
    }
}
